<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<title>借阅记录</title>
    <link rel="stylesheet" href="../css/font-awesome.min.css">
    <link rel="stylesheet" href="../bootstrap-3.3.4/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/common.css">
    <style type="text/css">
        body{
            background: rgba(0,0,0,0);
            color: #fff;
            margin-right: 15px;

        }
        .content-page2{
            position: absolute;
            left: 42%;
            margin-left: 0px;
        }
        .content-page2 .btn-groups button{
            width: 100px;

        }
        .btn-groups{
            margin-left: 0;
        }
        th{
            background-color: #286090;
            border: none;
            color: white;
        }
        td{

         vertical-align: 50%;

        }
    </style>

</head>
<body>
<div id="container"> </div>
<table class="table" >
	<h2>借阅记录</h2>
	<tr>
		<th>档案编号</th>
		<th>档案主题</th>
		<th>操作状态</th>
		<th>操作时间</th>
		<th>过期时间</th>
		<th>操作</th>
	</tr>

	<s:iterator value="amArchivesRequestsArrayList" >
		<tr>
			<td  style="vertical-align:middle"><s:property value="archivesRequestsArchiveId.getArchivesId()" /></td>
			<td  style="vertical-align:middle"><s:property value="archivesRequestsArchiveId.getArchivesTitle()" /></td>
			<td  style="vertical-align:middle"><s:property value="statusString()" /></td>
			<td  style="vertical-align:middle"><s:property value="startTimeString()" /></td>
			<td  style="vertical-align:middle"><s:property value="endTimeString()" /></td>
            <s:if test="getArchivesRequestsStatus()==1">
            <td>
  <button type="submit"  class="btn btn-primary" onclick="window.location.href=('${pageContext.request.contextPath }/archivesdetail?amArchivesRequestsId=<s:property value="archivesRequestsId" />')">阅读</button>

            </td>
            </s:if>
            <s:else>
                <td></td>
            </s:else>


		<%--	<td>    <button type="submit" class="btn btn-default" onclick="window.location.href('${pageContext.request.contextPath }/pagemodifyget?amArchivesRequestsId=<s:property value="getArchivesRequestsId()"/>&isAgressOrDenied=1&approvalerId=<s:property value="approvalerId"/>')">通过</button></td>
			<td>         <button type="submit" class="btn btn-default" onclick="window.location.href('${pageContext.request.contextPath }/pagemodifyget?amArchivesRequestsId=<s:property value="getArchivesRequestsId()"/>&isAgressOrDenied=0&approvalerId=<s:property value="approvalerId"/>')">驳回</button></td>
--%>
		</tr>
	</s:iterator>
</table>

</body>
</html>